Raspberry PI3: Enchanted Guide for Starters by Thomas Charlestom

Raspberry PI3: Enchanted Guide for Starters by Thomas Charlestom

Author:Thomas Charlestom [Charlestom, Thomas]
Language: eng
Format: epub
Publisher: Microsoft
Published: 2017-02-08T08:00:00+00:00


Result:

After we defined function, we also called it and passed it input parameter. We call function simply by writing its name with parenthesis. If we have input parameter, we have to write it inside of parenthesis. It is very important to remember that if we define input parameter in function and call it without passing one, we will get an error.

5.3.1. FUNCTION ARGUMENTS

There are few function arguments:

• Required arguments

These arguments must be passed to a function in correct order. The number of arguments passed must match with function definition. An example of these arguments can be seen above.

• Keyword arguments

If we use keyword arguments when calling a function, we do not take into account the order of parameters in function definition. By using keywords Python can match passed arguments with defined input parameters. For example:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.